package com.pactera.mavenweb.daoimpl;

import org.springframework.stereotype.Service;

import com.pactera.mavenweb.dao.IGenericDao;
import com.pactera.mavenweb.dao.GroupDao;
import com.pactera.mavenweb.entity.Group;

/**
 * GroupDao实现类
 * @author SteveXIE
 *
 */
@Service("groupDao")
public class GroupDaoImpl extends GenericDaoImpl<Group> implements
	GroupDao {
	
	public GroupDaoImpl() {
		super(Group.class);
	}

//	@Override
	@SuppressWarnings("unchecked")
	public int saveGroup(Group group) {
		try {
			this.insert(group);
			return 0;
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
}